﻿<UserControl x:Class="MySilverlightApplication.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    d:DataContext="{Binding Source={StaticResource SampleDataSource}}"
	mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
	<UserControl.Resources>
		<DataTemplate x:Key="AnnouncementsItemTemplate">
			<Border Margin="0,0,0,4" BorderThickness="2" CornerRadius="4" Padding="2">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="Black" Offset="0"/>
						<GradientStop Color="#FF848181" Offset="1"/>
					</LinearGradientBrush>
				</Border.Background>
				<Border.BorderBrush>
					<LinearGradientBrush EndPoint="0.501,0" StartPoint="0.499,1">
						<GradientStop Color="Black" Offset="0"/>
						<GradientStop Color="#FF0C518A" Offset="1"/>
					</LinearGradientBrush>
				</Border.BorderBrush>
				<StackPanel Height="48">
					<TextBlock Text="{Binding CreatedDate}" Foreground="#FFECEADF"/>
					<TextBlock Text="{Binding Title}" Foreground="#FFEAE6D4"/>
					<TextBlock Text="{Binding URL}" Foreground="#FFF4F4F4"/>
				</StackPanel>
			</Border>
		</DataTemplate>
	</UserControl.Resources>
  <Grid x:Name="LayoutRoot">
  	<ListBox Margin="8" ItemTemplate="{StaticResource AnnouncementsItemTemplate}" ItemsSource="{Binding Announcements}"/>

  </Grid>
</UserControl>
